package com.kaisu.blog.web.convert;

import org.springframework.data.domain.PageRequest;

/**
 * @author kaisu
 */
public class PageRequestConvert {
    public static PageRequest convert(com.kaisu.blog.web.request.PageRequest pageRequest) {
        return PageRequest.of(pageRequest.getPage() - 1, pageRequest.getSize());
    }
}
